home *** CD-ROM | disk | FTP | other *** search
- //==============================================================
- // DiscoBallC.
- // see the code in DiscoBallC
- //==============================================================
- class DiscoBallC extends KActor placeable;
-
-
- // #1
- // Adjust the time to 6
- function PreBeginPlay() {
- // # 1
- SetTimer(6.0, true);
- }
-
-
- function PostBeginPlay() {
- // # 2
- // Sets the initial velocity vector to point down
- // The speed of movement is 60 units
- // The arguments defined x y and z coordinates
- Velocity = vect(0, 0, -60);
- }
-
-
- function Timer() {
- // # 3
- // Flip the velocity vector around
- Velocity = (-1) * Velocity;
- }
-
-
-